package protoss;

import java.util.GregorianCalendar;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import toss.model.Event;


public class createEventServlet extends HttpServlet {

	public void doPost(HttpServletRequest req, HttpServletResponse resp){
		String name = req.getParameter("name");
		String country = req.getParameter("country");
		String city = req.getParameter("city");
		String zipcode = req.getParameter("zip_code");
		String address = req.getParameter("address");
		GregorianCalendar date = new GregorianCalendar();
		int price = Integer.parseInt(req.getParameter("name")); 
		int capacity = Integer.parseInt(req.getParameter("name"));
		boolean isSoldOut = Boolean.parseBoolean(req.getParameter("name"));
	
		 new Event(name,  country,  city,  zipcode, address,  date,  price,  capacity,
				 isSoldOut); 
	}
}
